//
//  ArticleItemModel.m
//  Btpin
//
//  Created by Vic on 2019/4/13.
//  Copyright © 2019 Vic. All rights reserved.
//

#import "ArticleItemModel.h"

@implementation ArticleItemModel

- (void)setValuesForKeysWithDictionary:(NSDictionary<NSString *,id> *)keyedValues {
    self.id = [UIToolsControl dataAnalysis:keyedValues[@"id"]];
    self.url = [UIToolsControl dataAnalysis:keyedValues[@"url"]];
    self.thumb = [UIToolsControl dataAnalysis:keyedValues[@"thumb"]];
    self.title = [UIToolsControl dataAnalysis:keyedValues[@"title"]];
    self.desc = [UIToolsControl dataAnalysis:keyedValues[@"desc"]];
    self.add_time = [UIToolsControl dataAnalysis:keyedValues[@"add_time"]];
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}

- (id)copyWithZone:(NSZone *)zone {
    ArticleItemModel *model = [[[self class] allocWithZone:zone] init];
    model.id = self.id;
    model.url = self.url;
    model.thumb = self.thumb;
    model.title = self.title;
    model.desc = self.desc;
    model.add_time = self.add_time;
    
    return model;
}

@end
